<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <css file="__PUBLIC__/css/base.css"/>
            <link type="text/css" href="__STATIC__/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-1.8.0.min.js"></script>
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
            <script type="text/javascript">
                $(function(){
                    $("#tabs").tabs();
                })
            </script>
    </head>
    <body>
        <div class="path">
            <strong>您现在的位置：</strong>
            <a href="__CONTROL__">新闻</a><span>></span>编辑文章
        </div>
        <div id="tabs" style="width:100%">
            <ul>
                <li><a href="#tabs-1">添加文章</a></li>
            </ul>
            <div id="tabs-1">
                <form action="__CONTROL__/edit/mid/{$hd.get.mid}" method="post">
                    <input type="hidden" name="id" value="{$hd.get.id}"/>
                    <table class="table2">
                        <tr>
                            <th>标题：</th>
                            <td><input type="text" name="title" style="width:360px;" value="{$field.title}"/></td>
                        </tr>
                        <empty value="$hd.get.catid">
                            <tr>
                                <th>发表栏目：</th>
                                <td><select name="catid">
                                        <option value="">选择栏目</option>
                                        <list from="$category" name="$v">
                                            <option value="{$v.catid}" <if value="$field.catid==$v.catid">selected="selected"</if>>{$v.html}└─{$v.cname}</option>
                                        </list>
                                    </select></td>
                            </tr>
                        </empty>
                        <tr>
                            <th>来源：</th>
                            <td><input type="text" name="news_data[source]"value="{$field.source}" style="width:200px;"/>
                                <select>
                                    <option value="">===选择来源===</option>
                                </select></td>
                        </tr>
                        <tr>
                            <th>缩略图：</th>
                            <td>
                                <upload name="thumb" limit="1" imagesize="200,200"/>
                                <div id="hd_upload">
                                    <input type="hidden" name="thumb[1][0]" value="{$field.thumb}"/>
                                    <img src="__ROOT__/{$field.thumb}"/>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>关键字：</th>
                            <td><input type="text" name="keywords"  value="{$field.keywords}"  style="width:300px;"/></td>
                        </tr>
                        <tr>
                            <th>描述：</th>
                            <td><textarea style="height:60px;width:90%" name="description">{$field.description}</textarea></td>
                        </tr>
                        <tr>
                            <th>正文：</th>
                            <td><editor name="news_data[body]" content="{$field.body}"/></td>
                        </tr>
                        
                        <tr>
                            <th>点击率：</th>
                            <td><input type="text" name="click"  value="{$field.click}"  style="width:100px;" value="100"/></td>
                        </tr>
                        <list from="$field_user" name="$v">
                            <tr>  
                                <th>{$v.title}：</th>
                                <td>{$v.html}<span class="desc">{$v.description}</span></td>
                            </tr> 
                        </list>
                        <tr>
                            <td>
                                <input type="submit" class="submit" value="修改文章"/>
                            </td>
                        </tr>
                    </table>
                </form>
                <script>
                    function hd_upload(){
                            $("#hd_upload").remove();
                    }
                </script>  
            </div>
        </div>
    </body>
</html>
